package org.xiyinjihe.platform.enums;

import org.xiyinjihe.platform.error.IError;

public enum SysUserError implements IError {

    USER_INFO_DELETE_ERROT("USER_INFO_DELETE_ERROT", "用户删除失败", "用户删除失败"),
    USER_INFO_ADD_ERROT("USER_INFO_ADD_ERROT", "用户添加失败", "用户添加失败"),
    USER_INFO_UPDATE_ERROT("USER_INFO_UPDATE_ERROT", "用户修改失败", "用户修改失败"),
    USER_INFO_ADD_REPEAT("USER_INFO_ADD_REPEAT", "用户名已存在", "用户名已存在"),
    USER_INFO_UPDATE_PWD("USER_INFO_UPDATE_PWD", "修改密码失败", "修改密码失败");


    private String errorCode;
    private String errorTitle;
    private String errorMsg;

    SysUserError(String errorCode, String errorTitle, String errorMsg) {
        this.errorCode = errorCode;
        this.errorTitle = errorTitle;
        this.errorMsg = errorMsg;
    }

    @Override
    public String getErrorCode() {
        return this.errorCode;
    }

    @Override
    public String getErrorTitle() {
        return this.errorTitle;
    }

    @Override
    public String getErrorMsg() {
        return this.errorMsg;
    }

}
